package com.xiaotu.common.model;

/**
 * @类名 TVLicenseModel
 * @日期 2017年2月8日
 * @作者 高海军
 * @功能 电视局备案实体类
 */
public class TVLicenseModel extends TVModel
{
    private String sets;
    private String production;
    private String licenseNum;
    private String pubDate;
    private String reviewer;
    private long timestamp;

    public TVLicenseModel()
    {
    }

    public TVLicenseModel(String tvId, String tvName, String sets, String production, String licenseNum, String
            pubDate, String reviewer)
    {
        super(tvId, tvName);
        this.sets = sets;
        this.production = production;
        this.licenseNum = licenseNum;
        this.pubDate = pubDate;
        this.reviewer = reviewer;
        this.timestamp = System.currentTimeMillis();
    }

    public String getSets()
    {
        return sets;
    }

    public void setSets(String sets)
    {
        this.sets = sets;
    }

    public String getProduction()
    {
        return production;
    }

    public void setProduction(String production)
    {
        this.production = production;
    }

    public String getLicenseNum()
    {
        return licenseNum;
    }

    public void setLicenseNum(String licenseNum)
    {
        this.licenseNum = licenseNum;
    }

    public String getPubDate()
    {
        return pubDate;
    }

    public void setPubDate(String pubDate)
    {
        this.pubDate = pubDate;
    }

    public String getReviewer()
    {
        return reviewer;
    }

    public void setReviewer(String reviewer)
    {
        this.reviewer = reviewer;
    }

    public long getTimestamp()
    {
        return timestamp;
    }

    public void setTimestamp(long timestamp)
    {
        this.timestamp = timestamp;
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        TVLicenseModel that = (TVLicenseModel) o;

        return getLicenseNum().equals(that.getLicenseNum());
    }

    @Override
    public int hashCode()
    {
        return getLicenseNum().hashCode();
    }
}
